angular.module('myApp').component('person',{
    templateUrl: 'view/persons/person.html',
    controller:function (PersonsServices) {
        this.getPerson = function () {
            var personList = this.lists=[];
            PersonsServices.getPerson(0,10).then(function (res) {
                for(var i = 0; i < res.data.lists.length; i++){
                    personList.push(res.data.lists[i]);
                }

                console.log(res.data.lists.length);
            });
        }
        this.getPerson();
    }
});